﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>蓝领</title>
<!---------------------------------- 页面基本设置禁止随意更改 ------------------------------------------>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="index" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="renderer" content="webkit" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!---------------------------------- 页面基本设置禁止随意更改 -------------------------------------------->
<!---------------------------------- 基础CSS类库可随意更改 ---------------------------------------------->
<link type="text/css" rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/css/reset.css?v={yun:}$config.cachecode{/yun}" />
<link type="text/css" rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/css/pin.css?v={yun:}$config.cachecode{/yun}" />
<!---------------------------------- 基础CSS类库可随意更改结束 -------------------------------------------->
<!---------------------------------- 基础js类库可随意更改 ---------------------------------------->
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/js/jquery.1.11.3.min.js?v={yun:}$config.cachecode{/yun}"></script>
<!---------------------------------- 基础js类库可随意更改 ---------------------------------------->
    <script>
        weburl = "{yun:}$config.sy_weburl{/yun}";
    </script>
<script type="text/javascript">
<!--密码可见事件开始-->
$(function(){
   $(".password-wrap .bt-showpwd").click(function(e){
	e.preventDefault();
	var $passinput=$(this).parents(".password-wrap").find("input");
	if($passinput.attr('type') === 'password'){
		$passinput.attr("type","text");
		$(this).removeClass("off").addClass("on");
		}
	else{
		$passinput.attr("type","password");
		$(this).removeClass("on").addClass("off");
		}
	})

	})
<!--密码可见事件结束-->
</script>
</head>
<body>
   <div class="pin_box pin_tbox pin_sbox">
        <!-----------------头部标题开始----------------->
        <div class="pin_title">
        	<a href="index.php?c=myinfo" class="titleback"></a>
            <span class="titlename">修改密码</span>
        </div>
        <!-----------------头部标题结束----------------->
   	    <div class="pin_bcon">
        	<div class="pin_scroll">
                <div class="change_passbox">
                    <div class="change_passlist">
                        <div class="passlistl">请输入旧密码：</div>
                        <div class="passlistr">
                            <div class="password-wrap passoff">
                                <div class="password-input">
                                    <input type="password" name="key" id="key" class="pin_input" autocomplete="off" />
                                </div>
                                <i class="bt-showpwd off"></i>
                            </div>

                        </div>
                    </div>
                   <div class="change_passlist">
                        <div class="passlistl">请输入新密码：</div>
                        <div class="passlistr">
                            <div class="password-wrap passoff">
                              <div class="password-input">
                                  <input type="password" name="key1" id="key1" class="pin_input" autocomplete="off" />
                              </div>
                              <i class="bt-showpwd off"></i>
                          </div>
                            
                        </div>
                   </div>
                   <div class="change_passlist">
                        <div class="passlistl">请再次输入密码：</div>
                        <div class="passlistr">
                            <div class="password-wrap passoff">
                              <div class="password-input">
                                  <input type="password" name="key2" id="key2" class="pin_input" autocomplete="off" />
                              </div>
                              <i class="bt-showpwd off"></i>
                          </div>
                            
                        </div>
                   </div>
                   <div class="change_passbtn">
                   <input type="button" class="pin_btn pin_alonebtn" value="提交" onClick="lchecklogin('{yun:}url m=jingjiren c=myinfo_password{/yun}')">
                   </div>
                   
                </div>
                
            </div>
        </div>
   </div>
</body>
</html>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /><script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script><script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>

<script type="text/javascript">
    function lchecklogin(url){
        var key=$("#key").val();
        var key1=$("#key1").val();
        var key2=$("#key2").val();

        if(key == ""){
            layer.msg('请输入旧密码！', 2, 8);return false;
        }
        if(key1 == ""){
            layer.msg('请输入密码！', 2, 8);return false;
        }
        if(key2 == ""){
            layer.msg('请再次输入密码！', 2, 8);return false;
        }
        if(key1 != key2){
            layer.msg('两次密码输入不一致！', 2, 8);return false;
        }



        $.post(url,{
            passwordold:key,
            password:key1,

        },function(data){
            var data=eval('('+data+')');

            if(data.url){
                layer.msg(data.msg, 2, 9);
                setTimeout(function(){
                    window.location.href=data.url;
                }, 2000);


            }else{

                //alert("11111");
                layer.msg(data.msg, 2, 8);
            }
        })
    }
</script>